package com.ityuan.springcloud.service.impl;

import org.springframework.stereotype.Service;
import com.ityuan.springcloud.client.user.entity.User;
import com.ityuan.springcloud.service.UserService;
@Service
public class UserServiceImpl implements UserService {

	@Override
	public User getUserById(Long id) {
		if (id==-1) {
			throw new RuntimeException("invalid id");
		}
		User user = new User();
		user.setName("username");
		user.setAge(11);
		return user;
	}

}
